<template>
  <div class="spaceWrapper">
    <ul>
      <li v-for="(item, index) in 100" :key="index">
        <img
          class="image"
          :src="require('~/assets/images/background.jpg')"
          alt
          width="100"
          height="100"
        />
        <div class="followContent">
          <div class="userProfile">
            <span>人生已经所剩无几，一人，一狗，一爱人，从此闯荡天涯</span>
          </div>
          <div class="followingAndFollower">
            <span class="follower">
              <em>120K</em>followers
            </span>
            <span class="following">
              <em>120K</em>following
            </span>
          </div>
        </div>
        <div class="btn">
          <el-button size="mini" round>关注他</el-button>
          <!-- <el-button size="mini" round>私聊他</el-button> -->
        </div>
      </li>
    </ul>
  </div>
</template>

<script lang="ts">
import { Component } from 'nuxt-property-decorator'
import { BaseVue } from '@/plugins/base-vue'
@Component({
  layout: 'personal',
})
export default class Space extends BaseVue {}
</script>

<style lang="scss" scoped>
.spaceWrapper {
  padding: 24px;
  ul {
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    li {
      margin-bottom: 17px;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-flow: row wrap;
      background-color: #24292e;
      padding: 10px;
      box-sizing: border-box;
      height: 300px;
      width: 236px;
      border-radius: 10px;
      .image {
        border-radius: 50%;
      }
      .followContent {
        display: flex;
        justify-content: center;
        flex-flow: row wrap;
        .userProfile {
          width: 160px;
          padding-bottom: 10px;
        }
        .followingAndFollower {
          display: flex;
          justify-content: center;
          .follower {
            margin-right: 10px;
            em {
              color: #ffff;
              padding-right: 10px;
            }
          }
          .following {
            em {
              color: #ffff;
              padding-right: 10px;
            }
          }
        }
      }
    }
  }
}
</style>